package pl.th.permission.plugin.node.annotation;

import pl.th.permission.plugin.Utils;

public class AllAnnotation extends AnyAnnotation{

    public AllAnnotation(AnnType type) {
        super(type);
    }

    @Override
    public boolean checkAnnotationType(AnnType type) {
        return type == AnnType.ON_ALL_PERMISSION_GRANTED
                || type == AnnType.ON_ALL_PERMISSION_DENIED;
    }

    @Override
    public String getMethodDesc() {
        return Utils.METHOD_DESC_PARTIAL_OR_ALL_CALLBACK;
    }
}
